<?php
$func_name = "cat.php";

$actions = array();
$actions['get'] = 'cat_get.php';
$actions['get_root'] = 'cat_get_root.php';
$actions['add'] = 'cat_add.php';

if (isset($_GET['action'], $actions[$_GET['action']])) {
    log_message('[' . $func_name . ']' . ACTION_FOUND . $_GET['action']);
    log_message('[' . $func_name . ']' . ACTION_LOADING . $actions[$_GET['action']]);
  
    return include $actions[$_GET['action']];
}

log_error('[' . $func_name . ']' . ACTION_NA . $_GET['action'] );
unset($func_name);
?>

